package com.psp.bu.service;

import com.psp.bu.controller.res.bean.ROrderDetailBean;
import com.psp.bu.controller.res.bean.ROrderListBean;
import com.psp.bu.service.exception.ServiceException;
import com.psp.bu.service.impl.PageResult;

public interface OrderService {

	/**
	 * 获取订单详情
	 * 
	 * @param uid
	 * @param oid
	 * @return
	 */
	ROrderDetailBean getDetail(String buid, String oid);

	/**
	 * 订单列表
	 * 
	 * @param page
	 *            当前请求页，从0开始
	 * @param pageSize
	 *            当前请求页的大小 10
	 * @param uid
	 *            用户id
	 * @param orderNo
	 *            订单编号
	 * @param state
	 *            订单状态
	 * @return
	 */
	PageResult<ROrderListBean> getList(int page, int pageSize, String buid, String orderNo, Integer state);

	/**
	 * 订单派遣
	 * 
	 * @param uid
	 * @param oid
	 * @param spid
	 * @return
	 */
	boolean dispatch(String uid, String oid, String spid) throws ServiceException;

}
